Skip to content

feat: lifebit related changes for 25.04 version#32

Merged
mageshwaran-lifebit merged 4 commits into25.04.8from
25.04-lifebit-changes
Jan 23, 2026
Merged

feat: lifebit related changes for 25.04 version#32
mageshwaran-lifebit merged 4 commits into25.04.8from
25.04-lifebit-changes

Conversation

@mageshwaran-lifebit
Copy link

This pull request adds support for pre-loading Lifebit plugins in the Nextflow CLI. The main change is the introduction of a method that checks for a specific environment variable and loads the specified plugins before pipeline execution.

Lifebit plugin pre-loading:

  • Added the preloadLifebitPlugins method to CmdRun, which checks the NXF_LIFEBIT_PRELOAD_PLUGINS environment variable and loads the listed plugins if present.
  • Invoked the new preloadLifebitPlugins method during command initialization, ensuring Lifebit plugins are loaded before pipeline execution.

Copy link
Collaborator

@tiagofilipe12 tiagofilipe12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to add branch protection rules for this branch @mageshwaran-lifebit . Are you able to do it?

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support for pre-loading Lifebit plugins in the Nextflow run command, based on an environment variable, so specified plugins are loaded before pipeline execution.

Changes:

  • Invoke a new preloading hook during CmdRun.run() initialization (after Plugins.init()).
  • Add preloadLifebitPlugins() to read NXF_LIFEBIT_PRELOAD_PLUGINS and load the listed plugins via the plugin subsystem.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 784 to 792
void preloadLifebitPlugins() {
def plugins = sysEnv.get('NXF_LIFEBIT_PRELOAD_PLUGINS')
if( plugins ) {
log.debug("Pre-loading Lifebit's plugins '${plugins}'...")
Plugins.load([plugins: plugins.tokenize(',').collect { it.trim() }])
log.debug("Preloaded Lifebit's plugins '${plugins}'.")
} else {
log.debug("No Lifebit's plugins to pre-load")
}
Copy link

Copilot AI Jan 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are existing unit tests for CmdRun (e.g. modules/nextflow/src/test/groovy/nextflow/cli/CmdRunTest.groovy). The new env-driven plugin preloading behavior isn’t covered; adding a test that verifies parsing/normalization of NXF_LIFEBIT_PRELOAD_PLUGINS and that the plugin loader is invoked with the expected ids (including edge-cases like whitespace/trailing commas) would help prevent regressions.

Copilot uses AI. Check for mistakes.
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mageshwaran-lifebit mageshwaran-lifebit merged commit ef6773d into 25.04.8 Jan 23, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants